﻿@model ShivamEMR.Model.Domain.PatientDomain.Patient

@{
    ViewBag.Title = "DoctorDashboard";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h3>Dashboard</h3>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<br />
<p>
@* @Html.ActionLink( "Appointment", "New","Appointment", new { area="CRM", id=Model.ID },null) &nbsp;
 @Html.ActionLink("Admission", "New", "Admission", new { id = Model.ID }, null)&nbsp;
 @Html.ActionLink("Treatment", "Appointment", new { id = Model.ID })&nbsp;
 @Html.ActionLink("Diagnostics", "Diagnostics", new { id = Model.ID })
  @Html.ActionLink("Tests", "PatientTest", new { id = Model.ID })
   @Html.ActionLink("Consultations", "Consultation", new { id = Model.ID })
    @Html.ActionLink("Allergies", "PatientAllergy", new { id = Model.ID })
     @Html.ActionLink("Medication", "Medication", new { id = Model.ID })*@

@* @Html.ActionLink("Representatives", "Representatives", new { id = Model.ID })
 @Html.ActionLink("Insurances", "Insurances", new { id = Model.ID })*@
 </p>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<div class='metro-pivot'>
<div class='pivot-item'>
     <h3>Patient Details</h3> 
        <table width="100%" cellpadding="4" cellspacing="4">

        <tr> 
        <td>

        <div class="editor-label">
            Name
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.FullName)           
        </div>
</td>
        
        </tr>

		<tr>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegistrationDate)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.RegistrationDate)           
        </div>
</td>
</tr>

<tr>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegisteredInBranch)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.RegisteredInBranch.Name)           
        </div>
</td>
    </tr><tr>
	@*<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Code)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.Code)           
        </div>
</td>*@
    </tr>
    
   @* <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.Title)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.FirstName)           
        </div>
</td>
    </tr>
    <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.MiddleName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.MiddleName)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.LastName)           
        </div>
</td>
    </tr>
    
    <tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.AltFirstName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.AltFirstName)           
        </div>
</td>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.AltMiddleName)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.AltMiddleName)           
        </div>
</td>
    </tr>*@
    
    <tr>
	     </tr></table></div>
     <div class='pivot-item'>
        <h3>Personal Details</h3> 
        <table width="100%" cellpadding="4" cellspacing="4">
	   <tr>
   
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfBirth)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.DateOfBirth)           
        </div>
</td>
     </tr> <tr>
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.Sex)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.Sex.SexName)           
        </div>
</td>
    </tr><tr>
	<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaritalStatus)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.MaritalStatus.Status)           
        </div>
</td>
@*<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.PictureID)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.PictureID)           
        </div>
</td>*@
    </tr><tr>
	@*<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonAccountID)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.PersonAccountID)           
        </div>
</td>*@
<td>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonStatus)
        </div>
</td>
<td>

        <div class="editor-field">
            @Html.DisplayFor(model => model.PersonStatus.Status)           
        </div>
</td>
    </tr><tr>
	     </tr></table></div>     
   </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
<script>
    $(function () {
        $("div.metro-pivot").metroPivot();
    });
</script>
